$import('ValidateRule');
$import('SFGridView');
$import('SFGrid');
$import('SFInput');
$import('SFDate');
$import('PlayerModel');
var PlayerView = $createClass('PlayerView',function(){
		this.pojoControls = [
		new SFInput({field:'areaId',name:'大区Id',rules:[new CheckEmpty,new CheckMaxLength({length:10})]})	
				,new SFInput({field:'playerName',name:'玩家名字',rules:[new CheckEmpty,new CheckMaxLength({length:50})]})	
				,new SFInput({field:'iconId',name:'玩家头像Id',rules:[new CheckEmpty,new CheckMaxLength({length:19})]})	
				,new SFInput({field:'level',name:'等级',rules:[new CheckEmpty,new CheckMaxLength({length:10})]})	
				,new SFInput({field:'tierId',name:'段位Id',rules:[new CheckMaxLength({length:10})]})	
				,new SFInput({field:'qquin',name:'qquin',rules:[new CheckEmpty,new CheckMaxLength({length:50})]})	
				,new SFInput({field:'queneName',name:'段位等级',rules:[new CheckMaxLength({length:50})]})	
				,new SFInput({field:'tierPoint',name:'胜点',rules:[new CheckMaxLength({length:10})]})	
					
	];
	this.pojoHidden=["id"];
	this.schControl =  [

	];
	this.leftBtns = [
		this.createAddBtn()
	];
	this.SFGridView();
},'SFGridView');
PlayerView.prototype.buildGrid = function(){
	var grid = new SFGrid({
		model:PlayerModel.get(),
		col:[
			    		{id:'id',text:'id'}
    		    		,{id:'areaId',text:'大区Id'}
    		    		,{id:'playerName',text:'玩家名字'}
    		    		,{id:'iconId',text:'玩家头像Id'}
    		    		,{id:'level',text:'等级'}
    		    		,{id:'tierId',text:'段位Id'}
    		    		,{id:'qquin',text:'qquin'}
    		    		,{id:'queneName',text:'段位等级'}
    		    		,{id:'tierPoint',text:'胜点'}
    					
		],
			
		linebutton:[
			this.createUpdateBtn(),
			this.createDelBtn()
		]
	});
	return grid;
}
